package com.tust.dao;

import com.tust.domain.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserDao {
    int insertUser(User user);
    int deleteUser(@Param("userName") String userName);
    int updateUser(User user);
    List<User> selectUserByUserName(@Param("userName") String userName);
    List<User> selectUserByPassword(@Param("password") String password);
    List<User> selectUserAll();
}
